import React from 'react';
import {View, StyleSheet,TouchableOpacity,StatusBar} from 'react-native';
import Video from "react-native-video";

const VideoCom = (props) => {
    console.log("succ");
    return (
        <View style={styles.container}>
            
                <Video
                    style={styles.video}
                    source={{uri: 'http://bpic.588ku.com/video_listen/588ku_video/22/11/28/17/56/33/video638485d1ccb41.mp4'}}
                    // ref={(ref) => {
                    //     this.player = ref
                    // }}

                >
                </Video>
                <StatusBar />
        </View>
    );
}

const styles = StyleSheet.create({
    container:{
        flex:1,
        backgroundColor: '#FFF',
        padding: 10,
    },
    video:{
        alignSelf: 'center',
        width: '100%',
        height: 400,
    }
})

export default VideoCom;
